package com.ankicoo.practice.coding;

import com.mysql.cj.util.StringUtils;

/**
 * Description:
 *
 * @author : QCYANG
 * @date : 2021/10/28 10:53
 */
public class Replace {
    public static void main(String[] args) {
        String s1 = "[文字]";
        String s2 = "替换【文字】[文字],,,[文字]]";

        while(s2.contains(s1)){
            s2 = s2.replace(s1,"1");
        }
        System.out.println(s2);
    }
}
